// We use our basic testerObject again.
(function(){

  function testerFunction (from) {
    console.log(from, " Loaded Tester Function");
  }
  
  var testerObject = {useMe: testerFunction};
  
  document.testerObject = testerObject;
})();

// 1.1 See if we can save a function in localStorage or sessionStorage
// 1.3 Commenting out: localStorage['testingFunction'] = function () { console.log('Testing Function Says Hello!'); };

// console.log(localStorage['testingFunction']); // 1.2, 1.4 Result: "function () { console.log("Testing Function Says Hello!"); }";

// 1.5  Self Executing function
//localStorage['selfExecuting'] = function () { console.log('Hello from localStorage!'); };

// console.log(localStorage['selfExecuting']); 1.6      Result: undifined

// 1.7  Trying to execute localStorage['testingFunction']
// 1.9  Commenting Out: localStorage['testingFunction'] = function () { console.log('Testing Function Says Hello!'); };
testingFunc = localStorage['testingFunction'];

console.log(typeof testingFunc); // Result: string
// testingFunc(); // Result: testingFunc is not a function